.class public Lcom/a0soft/gphone/app2sd/main/b;
.super Ljava/lang/Object;
.source "AdManager.java"


# static fields
.field private static final a:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 18
    const-class v0, Lcom/a0soft/gphone/app2sd/main/b;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/a0soft/gphone/app2sd/main/b;->a:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 17
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static a(Landroid/app/Activity;Z)V
    .locals 8
    .parameter
    .parameter

    .prologue
    const/4 v4, 0x2

    const/4 v7, -0x1

    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 23
    const v0, 0x7f0a0002

    invoke-virtual {p0, v0}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 24
    if-nez v0, :cond_1

    .line 107
    :cond_0
    :goto_0
    return-void

    .line 27
    :cond_1
    invoke-static {}, Lcom/a0soft/gphone/app2sd/main/CoreApp;->h()Lcom/a0soft/gphone/app2sd/main/CoreApp;

    move-result-object v1

    invoke-virtual {v1}, Lcom/a0soft/gphone/app2sd/main/CoreApp;->b()Z

    move-result v1

    if-nez v1, :cond_2

    .line 28
    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    goto :goto_0

    .line 34
    :cond_2
    invoke-virtual {p0}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v1

    invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    .line 35
    invoke-virtual {v1}, Landroid/view/Display;->getWidth()I

    .line 36
    invoke-virtual {v1}, Landroid/view/Display;->getHeight()I

    move-result v1

    .line 40
    int-to-float v1, v1

    invoke-static {v1}, Lcom/a0soft/gphone/a/a;->b(F)F

    move-result v1

    float-to-int v1, v1

    .line 46
    const/16 v2, 0x1e0

    if-ge v1, v2, :cond_4

    move v1, v6

    .line 50
    :goto_1
    invoke-virtual {v0, v5}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 52
    new-array v2, v4, [Ljava/lang/String;

    const-string v3, "vacations+packages,tour,travel"

    aput-object v3, v2, v5

    const-string v3, "free+music,movie,video"

    aput-object v3, v2, v6

    .line 55
    new-array v3, v4, [Ljava/lang/String;

    const-string v4, "6701853053"

    aput-object v4, v3, v5

    const-string v4, "9155744797"

    aput-object v4, v3, v6

    .line 57
    if-eqz p1, :cond_3

    move v4, v5

    .line 59
    :goto_2
    invoke-static {}, Lcom/adwhirl/h;->b()V

    .line 60
    aget-object v2, v2, v4

    invoke-static {v2}, Lcom/adwhirl/h;->a(Ljava/lang/String;)V

    .line 61
    aget-object v2, v3, v4

    invoke-static {v2}, Lcom/adwhirl/a/c;->c(Ljava/lang/String;)V

    .line 62
    const-string v2, "App2SD"

    invoke-static {v2}, Lcom/adwhirl/a/c;->b(Ljava/lang/String;)V

    .line 63
    const-string v2, "AZSoft Technology Inc."

    invoke-static {v2}, Lcom/adwhirl/a/c;->a(Ljava/lang/String;)V

    .line 64
    const-string v2, "TOP"

    invoke-static {v2}, Lcom/adwhirl/a/c;->d(Ljava/lang/String;)V

    .line 66
    new-instance v2, Lcom/adwhirl/AdWhirlLayout;

    const-string v3, "1592df418b7a41a3916372b98d662102"

    invoke-direct {v2, p0, v3}, Lcom/adwhirl/AdWhirlLayout;-><init>(Landroid/app/Activity;Ljava/lang/String;)V

    .line 67
    new-instance v3, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v3, v7, v7}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 70
    const/16 v4, 0xc

    invoke-virtual {v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 71
    invoke-virtual {v0, v2, v3}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 97
    if-eqz v1, :cond_0

    .line 99
    new-instance v1, Lcom/a0soft/gphone/app2sd/main/c;

    invoke-direct {v1, v0}, Lcom/a0soft/gphone/app2sd/main/c;-><init>(Landroid/view/View;)V

    const-wide/16 v2, 0x3a98

    invoke-virtual {v0, v1, v2, v3}, Landroid/view/ViewGroup;->postDelayed(Ljava/lang/Runnable;J)Z

    goto/16 :goto_0

    :cond_3
    move v4, v6

    .line 57
    goto :goto_2

    :cond_4
    move v1, v5

    goto :goto_1
.end method
